# coding=utf-8
from . import api


from iHome import redis_store
from flask import current_app, jsonify



# 使用蓝图注册路由
@api.route('/test', methods=['GET', 'POST'])
def test():
    # redis_store.set('name', 'huahua')
    # session['age'] = 18
    current_app.logger.fatal('Fatal Message')
    current_app.logger.error('Error Message')
    current_app.logger.warning('Warning Message')
    current_app.logger.info('Info Message')
    current_app.logger.debug('Debug Message')

    return 'index'
